<% provide(:title, "修改个人资料") %>
editpage
<h1>更改个人资料</h1>

<div class="row">
  <div class="span6 offset3">
    <%= form_for(@user) do |f| %>
        <%= render 'shared/error_messages',object: f.object %>

        <%= f.label :name,'名字' %>
        <%= f.text_field :name %>

        <%= f.label :email %>
        <%= f.text_field :email %>

        <%= f.label :password ,'密码'%>
        <%= f.password_field :password %>

        <%= f.label :password_confirmation, "重复密码" %>
        <%= f.password_field :password_confirmation %>

        <%= f.submit "保存更改", class: "btn btn-large btn-primary" %>
    <% end %>


  </div>
</div>